import {createApp} from 'vue'
import App from "@/App.vue"

//引入模板的全局样式
import '@/styles/index.scss'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//svg插件需要配置的代码
import 'virtual:svg-icons-register'


import globalComponent from '@/components/common/plugin/globalPlugin/index'
import router from '@/router/index.ts'
import pinia from "@/store/index.ts";
import '@/permission.ts'

//获取环境变量
console.log(import.meta.env)

const app = createApp(App);
app.use(ElementPlus, {locale: zhCn})
  .use(globalComponent)
  .use(router)
  .use(pinia)
  .mount('#app')
